<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>个人中心</title>
  <link rel="stylesheet" href="{{ asset('/home/css/mycss.css')}}"/>
  <link rel="stylesheet" href="{{ asset('/home/css/base.css')}}"/>
  <link rel="stylesheet" href="{{ asset('/home/css/alter.css')}}"/>

  <script type="text/javascript" src="{{asset('/jquery-1.8.3.min.js')}}"></script>
  <meta name="csrf-token" content="{{ csrf_token()}}">
  <style type="text/css">
    .nav-main{
      margin-top:100px;
      width:150px;
      height:300px;
      background-color: #ccc;
    }
    .ar{
      margin-left:40px;
    }
    #head{
      margin-top:100px;
      margin-left:130px;
      width:150px;
      height:1000px;
    }
    #body-box{
      width:750px;
      height:530px;
      margin-left:230px;
      margin-top:-300px;
    }
    
  </style>
</head>
<body>
     
  <div id='myHead1'></div>
  
  <div id='myHead2'>
    <img src="{{asset('/home/img/log.jpg')}}"/>
    <span style="font-size:20px;"><a href="{{url('/home/index')}}"> &nbsp &nbsp &nbsp &nbsp &nbsp魅族商城</a></span>
    
    <div><a href="{{asset('/home/user/logout')}}"> &nbsp&nbsp退出 </a></div>
    <div><a href="{{asset('/home/user/menu')}}">用户：{{session('master') -> userName}}&nbsp&nbsp|</a></div>
  </div>
  <div id="head">
    <div class="nav-main">
      <br/><br/>
          <span style="height:30px;font-size:20px;" class="ar" >订单中心</span><br/><br/>
          <a href="#" style="margin-top:30px;" class="ar">我的订单</a><br/><br/><br/><br/>
          <span style="margin-top:30px;font-size:20px;" class="ar">个人中心</span><br/><br/>
          <a href="#" style="margin-top:30px;" class="ar">账户管理</a><br/><br/>
    </div>
        <div id="body-box">
          <span style="font-size:16px;">首页>我的商城>订单管理</span>
         
            <table width='900' style="border:1px solid #ccc;">
               <tr height='40'>
                   <td>订单号</td>
                   <td>商品名</td>
                   <td>图片</td>
                   <td>收货地址</td>
                   <td>手机号</td>
                   <td>状态</td>
                   <td>价格</td>
                   <td>操作</td>

               </tr>
              @foreach($data as $user)
               <tr> 
                  <td> {{$user -> iid}}</td>
                  <td> {{$user -> name}}</td>
                  <td> <img src="{{$user -> img}}" widht='60' height='60'/></td>
                  <td> {{$user -> site}}</td>
                  <td> {{$user -> phone}}</td>
                  <td> 
                        @if($user -> pay == 0)
                        未付款 |
                        @else
                        已付款 |
                        @endif
                       @if($user -> pass == 0)
                        未发货
                       @else
                         发货中...
                       @endif

                  </td>
                  <td> {{$user -> price}}</td>
                  <td> 
                      @if($user -> pay == 0)
                       <a href="{{url('/home/indent/pay')}}/{{$user -> iid}}">
                       <button>付款</button></a>
                      @else
                       <a href="{{url('/home/indent/unpay')}}/{{$user -> iid}}">
                       <button>退款</button></a>
                      @endif
                  </td>

               </tr>
              @endforeach 
            </table>
         
        </div>
  </div>
  <div>
  <div class='footerInner'>
    <div class='footer-layer1'>
      <div class='footer-innerLink'>
        <a href="http://www.meizu.com/about.html" target="_blank" title="关于魅族">关于魅族</a>
        <img class="foot-line" src="https://uc-res.meizu.com/resources/common/images/default/space.gif">
        <a href="http://hr.meizu.com" target="_blank" title="工作机会">工作机会</a>
        <img class="foot-line" src="https://uc-res.meizu.com/resources/common/images/default/space.gif">
        <a href="http://www.meizu.com/contact.html" target="_blank" title="联系我们">联系我们</a>
        <img class="foot-line" src="https://uc-res.meizu.com/resources/common/images/default/space.gif">
        <a href="http://www.meizu.com/legalStatement.html" target="_blank" title="法律声明">法律声明</a>
        <img class="foot-line" src="https://uc-res.meizu.com/resources/common/images/default/space.gif">
        <a href="javascript:void(0);" id="globalName" class="footer-language" title="简体中文">简体中文&nbsp;&nbsp;&nbsp;</a>
      </div>
      <div class='footer-service'>
        <span class='service-label'>客服热线</span>
        <span class='service-num'>400-788-3333</span>
        <a id='service-online' class='service-online' href="javascript:void(0);" title="在线客服">在线客服</a>
      </div>
      <div class='footer-outerLink'>
        <a class='footer-sinaMblog' href="http://weibo.com/meizumobile" target="_blank"><img src="{{asset('/home/img/1.jpg')}}"></i></a>
        
        <a id='footer-weChat' class='footer-weChat' href="javascript:void(0);" target="_blank"><img src="{{asset('/home/img/2.jpg')}}"></i></a>
        <a class='footer-qzone' href="http://user.qzone.qq.com/2762957059" target="_blank"><img src="{{asset('/home/img/3.jpg')}}"></i></a>
      </div>
      <div id="globalContainer" class="footer-language_menu">
        <a href="javascript:void(0)" id="i18n-link" title="English" class="ClobalItem">English</a>
              <script>
          ;(function() {
            var u = decodeURIComponent(location.href)
                    var r = /lang=([^&\s]+)/
                    var lowB = !('addEventListener' in window)
                    var addEvent = lowB ? window.attachEvent : window.addEventListener

            if(r.test(u)) u = u.replace(r, 'lang=en_US')
            else u += (~u.indexOf('?') ? '&' : '?') + 'lang=en_US'

            addEvent(lowB ? 'onload' : 'load', function() {document.getElementById('i18n-link').setAttribute('href',u)})
          }());
        </script>
      </div>
    </div>
    <div class='clear'></div>
    <div id='flymeCopyright' class="copyrightWrap">
      <div class="copyrightInner">
        <span>©2016 Meizu Telecom Equipment Co., Ltd. All rights reserved.</span>
        <a href="http://www.miitbeian.gov.cn/" class='linkAGray' target="_blank">备案号: 粤ICP备13003602号-4</a>
        <a href="http://www3.res.meizu.com/static/cn/widget/footer/images/icp2_b2dcb54.jpg" class='linkAGray' target="_blank">经营许可证编号: 粤B2-20130198</a>
        <a target="_blank" href="http://www2.res.meizu.com/zh_cn/images/common/com_licence.jpg" hidefocus="true" class="linkAGray">营业执照</a>
      </div>
    </div>
  </div>
</div>
<div id="wechatPic"></div>

</body>
</html>                                                       
                                                                